import request from '@/utils/request/index.ts';
import { HttpConfig } from '@/types/common/setting.ts';

export const requestGet = (data: HttpConfig) => {
  return request({
    url: data.url,
    method: 'get',
    params: data.params,
  });
};

export const requestPost = (data: HttpConfig) => {
  return request({
    url: data.url,
    method: 'post',
    data: data.data,
  });
};
